import request from "./request";

export const get = <T, K>(url: string, params?: object) =>
  request.get<T, K>(url, { params });
export const post = <T, K>(url: string, data?: object) =>
  request.post<T, K>(url, data);
export const put = <T, K>(url: string, data?: object) =>
  request.put<T, K>(url, data);
export const del = <T, K>(url: string, params?: object) =>
  request.delete<T, K>(url, { params });
